public class Rectangle {
    double lenght = 0;
    double wide = 0;

    public Rectangle(double lenght,double wide) {
        this.lenght = lenght;
        this.wide = wide;
    }

    public double getPerimeter() {
        return 1.0 * (lenght + wide) * 2;
    }

    public double getArea() {
        return 1.0 * lenght * wide;
    }

}